<#include "/WEB-INF/default/fragment/header.ftl">
<body>

<div class="container">
<#if actionErrors?exists>
    <#list actionErrors as error>
    <div class="error">${error}</div>
    </#list>
</#if>
<form action="${request.contextPath}/upload" method="post" enctype="multipart/form-data">
    <fieldset>
        <legend>文件上传</legend>
        <div class="form-group">
            <label for="exampleInputEmail1">文件名字</label>
            <input type="text" class="form-control" id="exampleInputEmail1" name="filename" placeholder="Email">
            <#if fieldErrors?exists && fieldErrors['filename']?exists>
            <p class="help-block">${fieldErrors['filename']}</p>
            </#if>
        </div>
        <div class="form-group">
            <label for="exampleInputPassword1">文件</label>
            <input type="file" class="form-control" id="exampleInputPassword1" name="file" placeholder="Password">
            <p class="help-block">${fieldErrors['file']!""}</p>
        </div>
        <button type="submit" class="btn btn-success">上传</button>
    </fieldset>
</form>

</div>
</body>
<#include "/WEB-INF/default/fragment/footer.ftl">
